import { Utility } from "@/libs/utility"

export const adverseEventForm = [
	{
		fieldName: "id",
		fieldCNName: "",
		filedValue: "",
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "",
	},
	{
		fieldName: "randomNo",
		fieldCNName: "",
		filedValue: "",
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "",
	},
	{
		fieldName: "filterNo",
		fieldCNName: "",
		filedValue: "",
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "",
	},
	{
		/** 字段名，如：name */
		fieldName: "examineeCode",
		/** 字段对应的中文解释，如：姓名 */
		fieldCNName: "受试者编号",
		/** 字段的值，如：张三 */
		filedValue: 1,
		disabled: true,
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "inputText",
		rules: {
			required: true, // 只有为true的时候才写，为false这个字段不要
		},
		span: 2,
	},
	{
		disabled: true,
		/** 字段名，如：name */
		fieldName: "examineeName",
		/** 字段对应的中文解释，如：姓名 */
		fieldCNName: "受试者姓名",
		/** 字段的值，如：张三 */
		filedValue: 1,
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "inputText",
		rules: {
			required: true, // 只有为true的时候才写，为false这个字段不要
		},
		span: 2,
	},
	{
		fieldName: "aeName",
		fieldCNName: "不良事件名称",
		filedValue: "",
		span: 2,
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "inputText",
		rules: {
			required: true, // 只有为true的时候才写，为false这个字段不要
		},
	},
	{
		fieldName: "researchDrugId",
		fieldCNName: "研究药物名称",
		filedValue: "",
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "select",
		span: 2,
		itemList: [],
	},
	{
		fieldName: "aeBeginTime",
		fieldCNName: "开始时间",
		filedValue: "",
		span: 2,
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "datetime",
		rules: {
			required: true, // 只有为true的时候才写，为false这个字段不要
		},
	},
	// {
	// 	fieldName: "aeEndTime",
	// 	fieldCNName: "结束时间",
	// 	filedValue: "",
	// 	span: 2,
	// 	/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
	// 	type: "datetime",
	// },
	{
		fieldName: "severity",
		fieldCNName: "严重程度",
		filedValue: "",
		span: 2,
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "select",
		itemList: Utility.getDictList("severity"),
	},
	{
		fieldName: "aeTrait",
		fieldCNName: "不良事件特点",
		filedValue: "",
		span: 2,
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "select",
		itemList: Utility.getDictList("ae_trait"),
	},
	{
		fieldName: "isSae",
		fieldCNName: "是否为SAE",
		filedValue: "",
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "select",
		span: 2,
		itemList: Utility.getDictList("yn"),
	},
	{
		fieldName: "researchDrugRelate",
		fieldCNName: "与研究药物关系",
		filedValue: "",
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "select",
		itemList: Utility.getDictList("research_drug_relate"),
		span: 2,
	},
	{
		fieldName: "researchDrugTakeStep",
		fieldCNName: "对研究药物采取措施",
		filedValue: "",
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "inputText",
		span: 2,
	},
	{
		fieldName: "isUnintend",
		fieldCNName: "是否为非预期不良反应",
		filedValue: "",
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "select",
		span: 2,
		itemList: Utility.getDictList("yn"),
	},
	{
		fieldName: "aeSequelae",
		fieldCNName: "不良事件归转",
		filedValue: "",
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "select",
		itemList: Utility.getDictList("ae_sequelae"),
		span: 2,
	},
	{
		fieldName: "isAeQuit",
		fieldCNName: "是否因此退出",
		filedValue: "",
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "select",
		itemList: Utility.getDictList("yn"),
		span: 2,
	},
	{
		fieldName: "aeTakeStep",
		fieldCNName: "不良事件采取措施",
		filedValue: "",
		span: 2,
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "select",
		itemList: Utility.getDictList("ae_take_step"),
	},
	{
		fieldName: "aeTakeStepRemarks",
		fieldCNName: "采取措施描述",
		filedValue: "",
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "textarea",
	},
	{
		fieldName: "remarks",
		fieldCNName: "备注",
		filedValue: "",
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "textarea",
	},
]
